# -*- encoding=utf8 -*-
        
__author__ = "Bryan.Chen"
__desc__=""
        
from airtest.core.api import *
        
auto_setup(__file__)
        
from poco.drivers.std import StdPoco
poco = StdPoco()
        
using("../FlowTest.air")
import FlowTest
        
class SubGame_WaitLobbyScene(FlowTest.BaseTestCase):
    def __init__(self):
        print("%s __init__" % (__file__))
        
    def runTest(self, args):
        print("%s runTest" % (__file__))


        isTimeOut = False
        t1 = time.time()
        while True:
            if poco("LobbyScene").exists():
                break

            if time.time() - t1 > 1 * 60:
                isTimeOut = True
                break
        
        if isTimeOut:
            return False
            
        return True
        
_instance = SubGame_WaitLobbyScene()
runTest = _instance.runTest
